package com.java2001.mapper;

import com.java2001.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface BookMapper {

    int insertBook(Book book);

    int deleteBookById(String isbn);

    int updateBookById(Book book);

    Book queryBookById(String isbn);

    List<Book> queryBookList();

    /**
     * 根据isbn或者书名查询图书
     * @param book
     * @return
     */
    List<Book> queryBookByIsbnOrBookName(Book book);



}